package com.wudizaba.mqtt.demos.web.controller;

import com.wudizaba.mqtt.demos.web.service.serviceImpl.providerServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provider")
@RequiredArgsConstructor
public class providerController {


    private final providerServiceImpl providerService;

    @PostMapping("/test")
    public String test(){
        providerService.testClientToMqtt();
        return "test";
    }
}
